import React from "react"
export default class NavBar extends React.Component{
    render(){
        return(
            <div>
                <button onClick={()=>{
                    this.props.event()
                }}>{this.props.isShow?'合上':'展开'}</button>
            </div>
        )
    }
}